+Fri Jul 2 22:41:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkimage.c (gtk_image_expose): Properly align mask and
+ pixbuf if a subarea is exposed. (#135423, fix by John Ehresman)
+
Fri Jul 2 21:40:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
+Fri Jul 2 22:41:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkimage.c (gtk_image_expose): Properly align mask and
+ pixbuf if a subarea is exposed. (#135423, fix by John Ehresman)
+
Fri Jul 2 21:40:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
+Fri Jul 2 22:41:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkimage.c (gtk_image_expose): Properly align mask and
+ pixbuf if a subarea is exposed. (#135423, fix by John Ehresman)
+
Fri Jul 2 21:40:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
+Fri Jul 2 22:41:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkimage.c (gtk_image_expose): Properly align mask and
+ pixbuf if a subarea is exposed. (#135423, fix by John Ehresman)
+
Fri Jul 2 21:40:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
GtkMisc *misc;
GdkRectangle area, image_bound;
gfloat xalign;
- gint x, y;
+ gint x, y, mask_x, mask_y;
GdkBitmap *mask;
GdkPixbuf *pixbuf;
gboolean needs_state_transform;
y = floor (widget->allocation.y + misc->ypad
+ ((widget->allocation.height - widget->requisition.height) * misc->yalign)
+ 0.5);
+ mask_x = x;
+ mask_y = y;
image_bound.x = x;
image_bound.y = y;
if (mask)
{
gdk_gc_set_clip_mask (widget->style->black_gc, mask);
- gdk_gc_set_clip_origin (widget->style->black_gc, x, y);
+ gdk_gc_set_clip_origin (widget->style->black_gc, mask_x, mask_y);
}
if (gdk_rectangle_intersect (&image_bound, &area, &image_bound))